Leafo\ScssPhp\Compiler D

Total Complexity 913
Dependencies 15
Dependents 3
Total lines 5,281
Lines of code 2,876
Logical lines of code 1,889
Comment lines 1,075
Methods 205
Properties 110

Methods 205

Method Rating Maintainability Complexity Lines of code
compileChild()
D
12
88 271
reduce()
D
24
62 131
compileValue()
D
31 33 104
applyArguments()
C
34 27 90
matchExtendsSingle()
B
41 19 55
matchExtends()
B
40 18 57
spliceTree()
B
42 18 52
mergeMediaTypes()
A
46 14 43
opColorColor()
A
45 14 41
compileMediaQuery()
A
42 12 54
evalSelectorPart()
A
55 13 16
get()
A
49 12 30
findImport()
A
50 12 27
flattenSelectors()
A
47 11 37
coerceValue()
A
47 11 36
compile()
A
43 10 48
alterColor()
A
51 11 25
compileImport()
A
51 10 28
isWithout()
A
60 11 12
compileBlock()
A
48 9 31
multiplyMedia()
A
52 9 25
callNativeFunction()
A
52 9 23
libIndex()
A
53 9 22
mergeDirectRelationships()
A
53 9 22
compileMedia()
A
47 8 36
libTypeOf()
A
55 9 20
sortArgs()
A
51 8 27
joinSelectors()
A
52 8 25
setExisting()
A
55 8 19
compileWith()
S
50 7 30
libMix()
S
51 7 25
libScaleColor()
S
53 7 24
combineSelectorSingle()
S
53 7 24
normalizeValue()
S
53 7 23
coerceList()
S
53 7 21
libStrSlice()
S
56 7 17
libComparable()
S
60 7 12
toHSL()
S
52 6 23
flattenSelectorSingle()
S
56 6 18
hueToRGB()
S
57 6 17
hasSelectorPlaceholder()
S
61 6 13
getNormalizedNumbers()
S
54 5 21
libZip()
S
56 5 19
multiplySelectors()
S
57 5 18
coerceColor()
S
57 5 16
opAdd()
S
58 5 16
extractRelationshipFromFragment()
S
58 5 15
injectVariables()
S
58 5 15
fncall()
S
58 5 15
shouldEval()
S
61 5 12
callScssFunction()
S
54 4 21
compileSelectorPart()
S
58 4 16
libSetNth()
S
59 4 15
missingSelectors()
S
58 4 15
pushExtends()
S
60 4 14
listSeparatorForJoin()
S
61 4 13
libListSeparator()
S
61 4 13
fixColor()
S
63 4 11
compileDirective()
S
61 4 11
compileStringContent()
S
62 4 11
compileAtRoot()
S
52 3 25
libNth()
S
63 4 10
toRGB()
S
57 3 15
libMax()
S
63 4 10
opOr()
S
65 4 9
libCall()
S
58 3 15
opAnd()
S
65 4 9
libMin()
S
63 4 10
filterWithout()
S
64 4 10
mediaParent()
S
65 4 9
expToString()
S
61 3 13
libFunctionExists()
S
60 3 13
evalSelectors()
S
61 3 12
throwError()
S
63 3 11
extractInterpolation()
S
61 3 11
libRandom()
S
62 3 11
set()
S
63 3 11
libMapRemove()
S
61 3 11
importFile()
S
58 2 16
handleImportLoop()
S
64 3 9
coercePercent()
S
65 3 9
coerceMap()
S
66 3 9
isSelfExtend()
S
67 3 8
libMapGet()
S
62 3 10
libQuote()
S
67 3 7
libMapHasKey()
S
63 3 10
addParsedFile()
S
72 3 5
opNeq()
S
65 3 9
compileChildren()
S
67 3 8
opEq()
S
65 3 9
compileChildrenNoReturn()
S
65 3 9
isImmediateRelationshipCombinator()
S
78 3 3
libRgba()
S
62 3 10
libAlpha()
S
69 3 6
collapseSelectors()
S
61 2 14
compileSelector()
S
63 2 12
libInvert()
S
62 2 11
assertNumber()
S
70 2 6
libOpacify()
S
67 2 7
libIeHexStr()
S
70 2 5
assertColor()
S
71 2 6
adjustHsl()
S
64 2 9
libOpacity()
S
68 2 7
libIf()
S
68 2 7
libTransparentize()
S
67 2 7
libUnquote()
S
69 2 7
assertList()
S
71 2 6
coerceForExpression()
S
72 2 6
assertMap()
S
69 2 7
coerceString()
S
70 2 6
libInspect()
S
70 2 6
pushEnv()
S
65 2 9
fileExists()
S
79 2 3
libUnit()
S
68 2 7
libUniqueId()
S
64 2 8
isTruthy()
S
79 2 3
libFeatureExists()
S
68 2 7
libToUpperCase()
S
69 2 6
opDivNumberNumber()
S
68 2 6
libStrIndex()
S
65 2 8
libUnitless()
S
74 2 4
opCmpNumberNumber()
S
73 2 4
toBool()
S
80 2 3
libToLowerCase()
S
69 2 6
compactEnv()
S
71 2 6
libKeywords()
S
63 2 10
addImportPath()
S
73 2 5
extractEnv()
S
69 2 7
libSaturate()
S
64 2 9
getStoreEnv()
S
79 2 3
libGrayscale()
S
67 2 7
compileKeyframeBlock()
S
59 1 14
makeOutputBlock()
S
61 1 13
libJoin()
S
67 1 7
libMixinExists()
S
71 1 5
libComplement()
S
78 1 3
libMapKeys()
S
72 1 5
libFadeIn()
S
80 1 3
libCounter()
S
73 1 4
libFadeOut()
S
80 1 3
libVariableExists()
S
72 1 5
libGlobalVariableExists()
S
72 1 5
libMapValues()
S
72 1 5
libStrInsert()
S
64 1 9
libPercentage()
S
77 1 3
libFloor()
S
74 1 4
libMapMerge()
S
71 1 5
libAppend()
S
69 1 6
libCeil()
S
74 1 4
libAbs()
S
74 1 4
libLength()
S
75 1 4
libStrLength()
S
71 1 5
libRound()
S
74 1 4
__construct()
S
77 1 4
libDesaturate()
S
71 1 5
opNumberColor()
S
67 1 8
unsetVariable()
S
80 1 3
setVariables()
S
79 1 3
has()
S
78 1 3
setRaw()
S
80 1 3
popEnv()
S
81 1 3
flattenList()
S
80 1 3
opLtNumberNumber()
S
78 1 3
opLteNumberNumber()
S
78 1 3
opGtNumberNumber()
S
79 1 3
opGteNumberNumber()
S
78 1 3
opColorNumber()
S
67 1 8
getParsedFiles()
S
82 1 3
opModNumberNumber()
S
77 1 3
opSubNumberNumber()
S
77 1 3
opMulNumberNumber()
S
77 1 3
opAddNumberNumber()
S
77 1 3
normalizeName()
S
79 1 3
evalSelector()
S
78 1 3
compileComment()
S
72 1 5
compileNestedBlock()
S
66 1 8
compileRoot()
S
70 1 6
parserFactory()
S
70 1 6
getVariables()
S
82 1 3
setImportPaths()
S
80 1 3
libDarken()
S
70 1 5
libChangeColor()
S
74 1 5
libLighten()
S
70 1 5
libAdjustHue()
S
71 1 5
libLightness()
S
70 1 5
libSaturation()
S
70 1 5
libHue()
S
70 1 5
libHsla()
S
69 1 6
libHsl()
S
74 1 4
libBlue()
S
75 1 4
libGreen()
S
75 1 4
libRed()
S
75 1 4
libAdjustColor()
S
73 1 5
setNumberPrecision()
S
80 1 3
libRgb()
S
74 1 4
getBuiltinFunction()
S
64 1 10
setIgnoreErrors()
S
81 1 3
addFeature()
S
80 1 3
unregisterFunction()
S
79 1 3
registerFunction()
S
78 1 3
setSourceMapOptions()
S
81 1 3
setSourceMap()
S
81 1 3
setLineNumberStyle()
S
81 1 3
setFormatter()
S
81 1 3
setEncoding()
S
81 1 3